package Jcat.cduestcbbs.Dao;

import java.sql.SQLException;
import java.util.List;

import Jcat.cduestcbbs.Po.UserPo;

public interface UserDao {
	boolean insertUser(UserPo user) throws SQLException;

	boolean deleteUser(int userId) throws SQLException;

	List<UserPo> userQuery() throws SQLException;

	public int getAllUserNumbers() throws SQLException;

	boolean updateUser(UserPo user) throws SQLException;

	UserPo selectUserByUserName(UserPo user) throws SQLException;

	UserPo selectNewUser() throws SQLException;

	UserPo selectUserByuserId(int id) throws SQLException;

	List<UserPo> getuserPaingList(String searchWay, int pageNumber,String orderBy)
			throws SQLException;
	
	List<UserPo> getUserByConditions(String searchWay,Object o) throws SQLException;
}
